<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>将⼀个 Set 类型转换成 Array 类型</title>
</head>
<body>
    <script>
        var num=[1,2,4,5,6,1,2,3]
        var obj=new Set(num)
        var arr=[...obj]
        console.log(arr)
    </script>
</body>
</html>